xen/dom0: Arrange for dom0_cfg to contain the real max_vcpus value
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 19 Mar 2018 17:28:50 +0000 (17:28 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 31 Aug 2018 11:06:53 +0000 (12:06 +0100)
commit1aea974f04806a74592e0b3cf063e4b47a922b9b
tree9c8aeeccaa57cc2b50d54e43c559e85dce6dbd7e
parent4737fa52ce868b51a97bd4f6ee932e040cb103bf
xen/dom0: Arrange for dom0_cfg to contain the real max_vcpus value

Make dom0_max_vcpus() a common interface, and implement it on ARM by splitting
the existing alloc_dom0_vcpu0() function in half.

As domain_create() doesn't yet set up the vcpu array, the max value is also
passed into alloc_dom0_vcpu0().  This is temporary for bisectibility and
removed in the following patch.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/arm/domain_build.c
xen/arch/arm/setup.c
xen/arch/x86/dom0_build.c
xen/arch/x86/setup.c
xen/include/asm-x86/setup.h
xen/include/xen/domain.h